<div>
    <table>
        <thead>
            <tr>
                <th>#</th>
                <th>User</th>
                <th>Point</th>
                <th>Update Time</th>
                <th></th>
            </tr>
        </thead>
        <tbody>
            <?php $v13591538711iterator = $tests; $v13591538711incr = 0; $v13591538711loop = new stdClass(); $v13591538711loop->length = count($v13591538711iterator); $v13591538711loop->index = 1; $v13591538711loop->index0 = 1; $v13591538711loop->revindex = $v13591538711loop->length; $v13591538711loop->revindex0 = $v13591538711loop->length - 1; ?><?php foreach ($v13591538711iterator as $test) { ?><?php $v13591538711loop->first = ($v13591538711incr == 0); $v13591538711loop->index = $v13591538711incr + 1; $v13591538711loop->index0 = $v13591538711incr; $v13591538711loop->revindex = $v13591538711loop->length - $v13591538711incr; $v13591538711loop->revindex0 = $v13591538711loop->length - ($v13591538711incr + 1); $v13591538711loop->last = ($v13591538711incr == ($v13591538711loop->length - 1)); ?>
            <tr>
                <td><?php echo $v13591538711loop->index; ?></td>
                <td><?php echo ($test['user'] ? $test['user'] : ''); ?></td>
                <td><?php echo $test['result'] . '/'; ?><?php echo count(explode(',', $exercise->questions))?></td>
                <td><?php echo date('Y-m-d H:i:s', $test['updatedTime']); ?></td>
            </tr>
            <?php $v13591538711incr++; } ?>
        </tbody>
    </table>
</div>